<template>
  <div class="table_header_btn_box">
    <div class="table_header_btn">
      <el-button type="text" class="btn_box" @click="roleClick">
        <el-icon>
          <Setting />
        </el-icon>
        <span class="name">设置权限</span>
      </el-button>
      <el-button type="text" class="btn_box" @click="deleteClick">
        <el-icon>
          <Delete />
        </el-icon>
        <span class="name">移出</span>
      </el-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
const emit = defineEmits(["roleClick", "deleteClick"])
const roleClick = () => {
  emit("roleClick")
}
const deleteClick = () => {
  emit("deleteClick")
};

</script>

<style scoped lang="scss">
.table_header_btn_box {
  display: block;
  padding-left: 0px !important;
}

.table_header_btn {
  height: 29px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 800;
  padding: 0;
}

.btn_box {
  display: flex !important;
  align-items: center !important;
  color: #666;
  font-size: 14px;
  margin-right: 6px;
  cursor: pointer;
  padding: 0;
  line-height: normal;

  .icon {
    color: #999;
    font-size: 15px;
    margin-top: 2px;
  }

  .name {
    margin-left: 6px;
  }

  &:hover {
    color: #6698ff;

    .icon {
      color: #6698ff;
    }
  }
}

.el-button.is-disabled.el-button--text {
  color: #c0c4cc;
  cursor: not-allowed;

  .icon {
    color: #c0c4cc;
  }

  &:hover {
    color: #c0c4cc;

    .icon {
      color: #c0c4cc;
    }
  }
}

.Dropdown_item_menu {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  font-size: 14px !important;

  &:hover {
    background-color: #f5f5f5 !important;
    color: #606266;
  }
}
</style>